package com.ygqh.baby.po;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class BiOrderDayExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public BiOrderDayExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andOrderDateIsNull() {
            addCriterion("order_date is null");
            return (Criteria) this;
        }

        public Criteria andOrderDateIsNotNull() {
            addCriterion("order_date is not null");
            return (Criteria) this;
        }

        public Criteria andOrderDateEqualTo(Date value) {
            addCriterionForJDBCDate("order_date =", value, "orderDate");
            return (Criteria) this;
        }

        public Criteria andOrderDateNotEqualTo(Date value) {
            addCriterionForJDBCDate("order_date <>", value, "orderDate");
            return (Criteria) this;
        }

        public Criteria andOrderDateGreaterThan(Date value) {
            addCriterionForJDBCDate("order_date >", value, "orderDate");
            return (Criteria) this;
        }

        public Criteria andOrderDateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("order_date >=", value, "orderDate");
            return (Criteria) this;
        }

        public Criteria andOrderDateLessThan(Date value) {
            addCriterionForJDBCDate("order_date <", value, "orderDate");
            return (Criteria) this;
        }

        public Criteria andOrderDateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("order_date <=", value, "orderDate");
            return (Criteria) this;
        }

        public Criteria andOrderDateIn(List<Date> values) {
            addCriterionForJDBCDate("order_date in", values, "orderDate");
            return (Criteria) this;
        }

        public Criteria andOrderDateNotIn(List<Date> values) {
            addCriterionForJDBCDate("order_date not in", values, "orderDate");
            return (Criteria) this;
        }

        public Criteria andOrderDateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("order_date between", value1, value2, "orderDate");
            return (Criteria) this;
        }

        public Criteria andOrderDateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("order_date not between", value1, value2, "orderDate");
            return (Criteria) this;
        }

        public Criteria andTotalOrderCountIsNull() {
            addCriterion("total_order_count is null");
            return (Criteria) this;
        }

        public Criteria andTotalOrderCountIsNotNull() {
            addCriterion("total_order_count is not null");
            return (Criteria) this;
        }

        public Criteria andTotalOrderCountEqualTo(Long value) {
            addCriterion("total_order_count =", value, "totalOrderCount");
            return (Criteria) this;
        }

        public Criteria andTotalOrderCountNotEqualTo(Long value) {
            addCriterion("total_order_count <>", value, "totalOrderCount");
            return (Criteria) this;
        }

        public Criteria andTotalOrderCountGreaterThan(Long value) {
            addCriterion("total_order_count >", value, "totalOrderCount");
            return (Criteria) this;
        }

        public Criteria andTotalOrderCountGreaterThanOrEqualTo(Long value) {
            addCriterion("total_order_count >=", value, "totalOrderCount");
            return (Criteria) this;
        }

        public Criteria andTotalOrderCountLessThan(Long value) {
            addCriterion("total_order_count <", value, "totalOrderCount");
            return (Criteria) this;
        }

        public Criteria andTotalOrderCountLessThanOrEqualTo(Long value) {
            addCriterion("total_order_count <=", value, "totalOrderCount");
            return (Criteria) this;
        }

        public Criteria andTotalOrderCountIn(List<Long> values) {
            addCriterion("total_order_count in", values, "totalOrderCount");
            return (Criteria) this;
        }

        public Criteria andTotalOrderCountNotIn(List<Long> values) {
            addCriterion("total_order_count not in", values, "totalOrderCount");
            return (Criteria) this;
        }

        public Criteria andTotalOrderCountBetween(Long value1, Long value2) {
            addCriterion("total_order_count between", value1, value2, "totalOrderCount");
            return (Criteria) this;
        }

        public Criteria andTotalOrderCountNotBetween(Long value1, Long value2) {
            addCriterion("total_order_count not between", value1, value2, "totalOrderCount");
            return (Criteria) this;
        }

        public Criteria andTotalOrderPriceIsNull() {
            addCriterion("total_order_price is null");
            return (Criteria) this;
        }

        public Criteria andTotalOrderPriceIsNotNull() {
            addCriterion("total_order_price is not null");
            return (Criteria) this;
        }

        public Criteria andTotalOrderPriceEqualTo(BigDecimal value) {
            addCriterion("total_order_price =", value, "totalOrderPrice");
            return (Criteria) this;
        }

        public Criteria andTotalOrderPriceNotEqualTo(BigDecimal value) {
            addCriterion("total_order_price <>", value, "totalOrderPrice");
            return (Criteria) this;
        }

        public Criteria andTotalOrderPriceGreaterThan(BigDecimal value) {
            addCriterion("total_order_price >", value, "totalOrderPrice");
            return (Criteria) this;
        }

        public Criteria andTotalOrderPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("total_order_price >=", value, "totalOrderPrice");
            return (Criteria) this;
        }

        public Criteria andTotalOrderPriceLessThan(BigDecimal value) {
            addCriterion("total_order_price <", value, "totalOrderPrice");
            return (Criteria) this;
        }

        public Criteria andTotalOrderPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("total_order_price <=", value, "totalOrderPrice");
            return (Criteria) this;
        }

        public Criteria andTotalOrderPriceIn(List<BigDecimal> values) {
            addCriterion("total_order_price in", values, "totalOrderPrice");
            return (Criteria) this;
        }

        public Criteria andTotalOrderPriceNotIn(List<BigDecimal> values) {
            addCriterion("total_order_price not in", values, "totalOrderPrice");
            return (Criteria) this;
        }

        public Criteria andTotalOrderPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("total_order_price between", value1, value2, "totalOrderPrice");
            return (Criteria) this;
        }

        public Criteria andTotalOrderPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("total_order_price not between", value1, value2, "totalOrderPrice");
            return (Criteria) this;
        }

        public Criteria andTotalUserCountIsNull() {
            addCriterion("total_user_count is null");
            return (Criteria) this;
        }

        public Criteria andTotalUserCountIsNotNull() {
            addCriterion("total_user_count is not null");
            return (Criteria) this;
        }

        public Criteria andTotalUserCountEqualTo(Long value) {
            addCriterion("total_user_count =", value, "totalUserCount");
            return (Criteria) this;
        }

        public Criteria andTotalUserCountNotEqualTo(Long value) {
            addCriterion("total_user_count <>", value, "totalUserCount");
            return (Criteria) this;
        }

        public Criteria andTotalUserCountGreaterThan(Long value) {
            addCriterion("total_user_count >", value, "totalUserCount");
            return (Criteria) this;
        }

        public Criteria andTotalUserCountGreaterThanOrEqualTo(Long value) {
            addCriterion("total_user_count >=", value, "totalUserCount");
            return (Criteria) this;
        }

        public Criteria andTotalUserCountLessThan(Long value) {
            addCriterion("total_user_count <", value, "totalUserCount");
            return (Criteria) this;
        }

        public Criteria andTotalUserCountLessThanOrEqualTo(Long value) {
            addCriterion("total_user_count <=", value, "totalUserCount");
            return (Criteria) this;
        }

        public Criteria andTotalUserCountIn(List<Long> values) {
            addCriterion("total_user_count in", values, "totalUserCount");
            return (Criteria) this;
        }

        public Criteria andTotalUserCountNotIn(List<Long> values) {
            addCriterion("total_user_count not in", values, "totalUserCount");
            return (Criteria) this;
        }

        public Criteria andTotalUserCountBetween(Long value1, Long value2) {
            addCriterion("total_user_count between", value1, value2, "totalUserCount");
            return (Criteria) this;
        }

        public Criteria andTotalUserCountNotBetween(Long value1, Long value2) {
            addCriterion("total_user_count not between", value1, value2, "totalUserCount");
            return (Criteria) this;
        }

        public Criteria andPayOrderCountIsNull() {
            addCriterion("pay_order_count is null");
            return (Criteria) this;
        }

        public Criteria andPayOrderCountIsNotNull() {
            addCriterion("pay_order_count is not null");
            return (Criteria) this;
        }

        public Criteria andPayOrderCountEqualTo(Long value) {
            addCriterion("pay_order_count =", value, "payOrderCount");
            return (Criteria) this;
        }

        public Criteria andPayOrderCountNotEqualTo(Long value) {
            addCriterion("pay_order_count <>", value, "payOrderCount");
            return (Criteria) this;
        }

        public Criteria andPayOrderCountGreaterThan(Long value) {
            addCriterion("pay_order_count >", value, "payOrderCount");
            return (Criteria) this;
        }

        public Criteria andPayOrderCountGreaterThanOrEqualTo(Long value) {
            addCriterion("pay_order_count >=", value, "payOrderCount");
            return (Criteria) this;
        }

        public Criteria andPayOrderCountLessThan(Long value) {
            addCriterion("pay_order_count <", value, "payOrderCount");
            return (Criteria) this;
        }

        public Criteria andPayOrderCountLessThanOrEqualTo(Long value) {
            addCriterion("pay_order_count <=", value, "payOrderCount");
            return (Criteria) this;
        }

        public Criteria andPayOrderCountIn(List<Long> values) {
            addCriterion("pay_order_count in", values, "payOrderCount");
            return (Criteria) this;
        }

        public Criteria andPayOrderCountNotIn(List<Long> values) {
            addCriterion("pay_order_count not in", values, "payOrderCount");
            return (Criteria) this;
        }

        public Criteria andPayOrderCountBetween(Long value1, Long value2) {
            addCriterion("pay_order_count between", value1, value2, "payOrderCount");
            return (Criteria) this;
        }

        public Criteria andPayOrderCountNotBetween(Long value1, Long value2) {
            addCriterion("pay_order_count not between", value1, value2, "payOrderCount");
            return (Criteria) this;
        }

        public Criteria andPayOrderPriceIsNull() {
            addCriterion("pay_order_price is null");
            return (Criteria) this;
        }

        public Criteria andPayOrderPriceIsNotNull() {
            addCriterion("pay_order_price is not null");
            return (Criteria) this;
        }

        public Criteria andPayOrderPriceEqualTo(BigDecimal value) {
            addCriterion("pay_order_price =", value, "payOrderPrice");
            return (Criteria) this;
        }

        public Criteria andPayOrderPriceNotEqualTo(BigDecimal value) {
            addCriterion("pay_order_price <>", value, "payOrderPrice");
            return (Criteria) this;
        }

        public Criteria andPayOrderPriceGreaterThan(BigDecimal value) {
            addCriterion("pay_order_price >", value, "payOrderPrice");
            return (Criteria) this;
        }

        public Criteria andPayOrderPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("pay_order_price >=", value, "payOrderPrice");
            return (Criteria) this;
        }

        public Criteria andPayOrderPriceLessThan(BigDecimal value) {
            addCriterion("pay_order_price <", value, "payOrderPrice");
            return (Criteria) this;
        }

        public Criteria andPayOrderPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("pay_order_price <=", value, "payOrderPrice");
            return (Criteria) this;
        }

        public Criteria andPayOrderPriceIn(List<BigDecimal> values) {
            addCriterion("pay_order_price in", values, "payOrderPrice");
            return (Criteria) this;
        }

        public Criteria andPayOrderPriceNotIn(List<BigDecimal> values) {
            addCriterion("pay_order_price not in", values, "payOrderPrice");
            return (Criteria) this;
        }

        public Criteria andPayOrderPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("pay_order_price between", value1, value2, "payOrderPrice");
            return (Criteria) this;
        }

        public Criteria andPayOrderPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("pay_order_price not between", value1, value2, "payOrderPrice");
            return (Criteria) this;
        }

        public Criteria andPayUserCountIsNull() {
            addCriterion("pay_user_count is null");
            return (Criteria) this;
        }

        public Criteria andPayUserCountIsNotNull() {
            addCriterion("pay_user_count is not null");
            return (Criteria) this;
        }

        public Criteria andPayUserCountEqualTo(Long value) {
            addCriterion("pay_user_count =", value, "payUserCount");
            return (Criteria) this;
        }

        public Criteria andPayUserCountNotEqualTo(Long value) {
            addCriterion("pay_user_count <>", value, "payUserCount");
            return (Criteria) this;
        }

        public Criteria andPayUserCountGreaterThan(Long value) {
            addCriterion("pay_user_count >", value, "payUserCount");
            return (Criteria) this;
        }

        public Criteria andPayUserCountGreaterThanOrEqualTo(Long value) {
            addCriterion("pay_user_count >=", value, "payUserCount");
            return (Criteria) this;
        }

        public Criteria andPayUserCountLessThan(Long value) {
            addCriterion("pay_user_count <", value, "payUserCount");
            return (Criteria) this;
        }

        public Criteria andPayUserCountLessThanOrEqualTo(Long value) {
            addCriterion("pay_user_count <=", value, "payUserCount");
            return (Criteria) this;
        }

        public Criteria andPayUserCountIn(List<Long> values) {
            addCriterion("pay_user_count in", values, "payUserCount");
            return (Criteria) this;
        }

        public Criteria andPayUserCountNotIn(List<Long> values) {
            addCriterion("pay_user_count not in", values, "payUserCount");
            return (Criteria) this;
        }

        public Criteria andPayUserCountBetween(Long value1, Long value2) {
            addCriterion("pay_user_count between", value1, value2, "payUserCount");
            return (Criteria) this;
        }

        public Criteria andPayUserCountNotBetween(Long value1, Long value2) {
            addCriterion("pay_user_count not between", value1, value2, "payUserCount");
            return (Criteria) this;
        }

        public Criteria andTotalCostPriceIsNull() {
            addCriterion("total_cost_price is null");
            return (Criteria) this;
        }

        public Criteria andTotalCostPriceIsNotNull() {
            addCriterion("total_cost_price is not null");
            return (Criteria) this;
        }

        public Criteria andTotalCostPriceEqualTo(BigDecimal value) {
            addCriterion("total_cost_price =", value, "totalCostPrice");
            return (Criteria) this;
        }

        public Criteria andTotalCostPriceNotEqualTo(BigDecimal value) {
            addCriterion("total_cost_price <>", value, "totalCostPrice");
            return (Criteria) this;
        }

        public Criteria andTotalCostPriceGreaterThan(BigDecimal value) {
            addCriterion("total_cost_price >", value, "totalCostPrice");
            return (Criteria) this;
        }

        public Criteria andTotalCostPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("total_cost_price >=", value, "totalCostPrice");
            return (Criteria) this;
        }

        public Criteria andTotalCostPriceLessThan(BigDecimal value) {
            addCriterion("total_cost_price <", value, "totalCostPrice");
            return (Criteria) this;
        }

        public Criteria andTotalCostPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("total_cost_price <=", value, "totalCostPrice");
            return (Criteria) this;
        }

        public Criteria andTotalCostPriceIn(List<BigDecimal> values) {
            addCriterion("total_cost_price in", values, "totalCostPrice");
            return (Criteria) this;
        }

        public Criteria andTotalCostPriceNotIn(List<BigDecimal> values) {
            addCriterion("total_cost_price not in", values, "totalCostPrice");
            return (Criteria) this;
        }

        public Criteria andTotalCostPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("total_cost_price between", value1, value2, "totalCostPrice");
            return (Criteria) this;
        }

        public Criteria andTotalCostPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("total_cost_price not between", value1, value2, "totalCostPrice");
            return (Criteria) this;
        }

        public Criteria andGrossMarginIsNull() {
            addCriterion("gross_margin is null");
            return (Criteria) this;
        }

        public Criteria andGrossMarginIsNotNull() {
            addCriterion("gross_margin is not null");
            return (Criteria) this;
        }

        public Criteria andGrossMarginEqualTo(BigDecimal value) {
            addCriterion("gross_margin =", value, "grossMargin");
            return (Criteria) this;
        }

        public Criteria andGrossMarginNotEqualTo(BigDecimal value) {
            addCriterion("gross_margin <>", value, "grossMargin");
            return (Criteria) this;
        }

        public Criteria andGrossMarginGreaterThan(BigDecimal value) {
            addCriterion("gross_margin >", value, "grossMargin");
            return (Criteria) this;
        }

        public Criteria andGrossMarginGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("gross_margin >=", value, "grossMargin");
            return (Criteria) this;
        }

        public Criteria andGrossMarginLessThan(BigDecimal value) {
            addCriterion("gross_margin <", value, "grossMargin");
            return (Criteria) this;
        }

        public Criteria andGrossMarginLessThanOrEqualTo(BigDecimal value) {
            addCriterion("gross_margin <=", value, "grossMargin");
            return (Criteria) this;
        }

        public Criteria andGrossMarginIn(List<BigDecimal> values) {
            addCriterion("gross_margin in", values, "grossMargin");
            return (Criteria) this;
        }

        public Criteria andGrossMarginNotIn(List<BigDecimal> values) {
            addCriterion("gross_margin not in", values, "grossMargin");
            return (Criteria) this;
        }

        public Criteria andGrossMarginBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("gross_margin between", value1, value2, "grossMargin");
            return (Criteria) this;
        }

        public Criteria andGrossMarginNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("gross_margin not between", value1, value2, "grossMargin");
            return (Criteria) this;
        }

        public Criteria andShopTypeIsNull() {
            addCriterion("shop_type is null");
            return (Criteria) this;
        }

        public Criteria andShopTypeIsNotNull() {
            addCriterion("shop_type is not null");
            return (Criteria) this;
        }

        public Criteria andShopTypeEqualTo(String value) {
            addCriterion("shop_type =", value, "shopType");
            return (Criteria) this;
        }

        public Criteria andShopTypeNotEqualTo(String value) {
            addCriterion("shop_type <>", value, "shopType");
            return (Criteria) this;
        }

        public Criteria andShopTypeGreaterThan(String value) {
            addCriterion("shop_type >", value, "shopType");
            return (Criteria) this;
        }

        public Criteria andShopTypeGreaterThanOrEqualTo(String value) {
            addCriterion("shop_type >=", value, "shopType");
            return (Criteria) this;
        }

        public Criteria andShopTypeLessThan(String value) {
            addCriterion("shop_type <", value, "shopType");
            return (Criteria) this;
        }

        public Criteria andShopTypeLessThanOrEqualTo(String value) {
            addCriterion("shop_type <=", value, "shopType");
            return (Criteria) this;
        }

        public Criteria andShopTypeLike(String value) {
            addCriterion("shop_type like", value, "shopType");
            return (Criteria) this;
        }

        public Criteria andShopTypeNotLike(String value) {
            addCriterion("shop_type not like", value, "shopType");
            return (Criteria) this;
        }

        public Criteria andShopTypeIn(List<String> values) {
            addCriterion("shop_type in", values, "shopType");
            return (Criteria) this;
        }

        public Criteria andShopTypeNotIn(List<String> values) {
            addCriterion("shop_type not in", values, "shopType");
            return (Criteria) this;
        }

        public Criteria andShopTypeBetween(String value1, String value2) {
            addCriterion("shop_type between", value1, value2, "shopType");
            return (Criteria) this;
        }

        public Criteria andShopTypeNotBetween(String value1, String value2) {
            addCriterion("shop_type not between", value1, value2, "shopType");
            return (Criteria) this;
        }

        public Criteria andShopNameIsNull() {
            addCriterion("shop_name is null");
            return (Criteria) this;
        }

        public Criteria andShopNameIsNotNull() {
            addCriterion("shop_name is not null");
            return (Criteria) this;
        }

        public Criteria andShopNameEqualTo(String value) {
            addCriterion("shop_name =", value, "shopName");
            return (Criteria) this;
        }

        public Criteria andShopNameNotEqualTo(String value) {
            addCriterion("shop_name <>", value, "shopName");
            return (Criteria) this;
        }

        public Criteria andShopNameGreaterThan(String value) {
            addCriterion("shop_name >", value, "shopName");
            return (Criteria) this;
        }

        public Criteria andShopNameGreaterThanOrEqualTo(String value) {
            addCriterion("shop_name >=", value, "shopName");
            return (Criteria) this;
        }

        public Criteria andShopNameLessThan(String value) {
            addCriterion("shop_name <", value, "shopName");
            return (Criteria) this;
        }

        public Criteria andShopNameLessThanOrEqualTo(String value) {
            addCriterion("shop_name <=", value, "shopName");
            return (Criteria) this;
        }

        public Criteria andShopNameLike(String value) {
            addCriterion("shop_name like", value, "shopName");
            return (Criteria) this;
        }

        public Criteria andShopNameNotLike(String value) {
            addCriterion("shop_name not like", value, "shopName");
            return (Criteria) this;
        }

        public Criteria andShopNameIn(List<String> values) {
            addCriterion("shop_name in", values, "shopName");
            return (Criteria) this;
        }

        public Criteria andShopNameNotIn(List<String> values) {
            addCriterion("shop_name not in", values, "shopName");
            return (Criteria) this;
        }

        public Criteria andShopNameBetween(String value1, String value2) {
            addCriterion("shop_name between", value1, value2, "shopName");
            return (Criteria) this;
        }

        public Criteria andShopNameNotBetween(String value1, String value2) {
            addCriterion("shop_name not between", value1, value2, "shopName");
            return (Criteria) this;
        }

        public Criteria andWarehouseNoIsNull() {
            addCriterion("warehouse_no is null");
            return (Criteria) this;
        }

        public Criteria andWarehouseNoIsNotNull() {
            addCriterion("warehouse_no is not null");
            return (Criteria) this;
        }

        public Criteria andWarehouseNoEqualTo(String value) {
            addCriterion("warehouse_no =", value, "warehouseNo");
            return (Criteria) this;
        }

        public Criteria andWarehouseNoNotEqualTo(String value) {
            addCriterion("warehouse_no <>", value, "warehouseNo");
            return (Criteria) this;
        }

        public Criteria andWarehouseNoGreaterThan(String value) {
            addCriterion("warehouse_no >", value, "warehouseNo");
            return (Criteria) this;
        }

        public Criteria andWarehouseNoGreaterThanOrEqualTo(String value) {
            addCriterion("warehouse_no >=", value, "warehouseNo");
            return (Criteria) this;
        }

        public Criteria andWarehouseNoLessThan(String value) {
            addCriterion("warehouse_no <", value, "warehouseNo");
            return (Criteria) this;
        }

        public Criteria andWarehouseNoLessThanOrEqualTo(String value) {
            addCriterion("warehouse_no <=", value, "warehouseNo");
            return (Criteria) this;
        }

        public Criteria andWarehouseNoLike(String value) {
            addCriterion("warehouse_no like", value, "warehouseNo");
            return (Criteria) this;
        }

        public Criteria andWarehouseNoNotLike(String value) {
            addCriterion("warehouse_no not like", value, "warehouseNo");
            return (Criteria) this;
        }

        public Criteria andWarehouseNoIn(List<String> values) {
            addCriterion("warehouse_no in", values, "warehouseNo");
            return (Criteria) this;
        }

        public Criteria andWarehouseNoNotIn(List<String> values) {
            addCriterion("warehouse_no not in", values, "warehouseNo");
            return (Criteria) this;
        }

        public Criteria andWarehouseNoBetween(String value1, String value2) {
            addCriterion("warehouse_no between", value1, value2, "warehouseNo");
            return (Criteria) this;
        }

        public Criteria andWarehouseNoNotBetween(String value1, String value2) {
            addCriterion("warehouse_no not between", value1, value2, "warehouseNo");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}